home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / server / scripts / audioProfiles.cs < prev    next >
Encoding:
Text File  |  2005-11-23  |  2.8 KB  |  125 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6. //-----------------------------------------------------------------------------
  7. // 3D Sounds
  8. //-----------------------------------------------------------------------------
  9.  
  10. //-----------------------------------------------------------------------------
  11. // Single shot sounds
  12.  
  13. datablock AudioDescription(AudioDefault3d)
  14. {
  15.    volume   = 1.0;
  16.    isLooping= false;
  17.  
  18.    is3D     = true;
  19.    ReferenceDistance= 20.0;
  20.    MaxDistance= 100.0;
  21.    type     = $SimAudioType;
  22. };
  23.  
  24. datablock AudioDescription(AudioClose3d)
  25. {
  26.    volume   = 1.0;
  27.    isLooping= false;
  28.  
  29.    is3D     = true;
  30.    ReferenceDistance= 10.0;
  31.    MaxDistance= 60.0;
  32.    type     = $SimAudioType;
  33. };
  34.  
  35. datablock AudioDescription(AudioClosest3d)
  36. {
  37.    volume   = 1.0;
  38.    isLooping= false;
  39.  
  40.    is3D     = true;
  41.    ReferenceDistance= 5.0;
  42.    MaxDistance= 30.0;
  43.    type     = $SimAudioType;
  44. };
  45.  
  46. datablock AudioDescription(AudioLightning3d)
  47. {
  48.    volume   = 1.0;
  49.    isLooping= false;
  50.  
  51.    is3D     = true;
  52.    ReferenceDistance= 10.0;
  53.    MaxDistance= 400.0;
  54.    type     = $SimAudioType;
  55. };
  56.  
  57.  
  58. //-----------------------------------------------------------------------------
  59. // Looping sounds
  60.  
  61. datablock AudioDescription(AudioDefaultLooping3d)
  62. {
  63.    volume   = 1.0;
  64.    isLooping= true;
  65.  
  66.    is3D     = true;
  67.    ReferenceDistance= 20.0;
  68.    MaxDistance= 100.0;
  69.    type     = $SimAudioType;
  70. };
  71.  
  72. datablock AudioDescription(AudioCloseLooping3d)
  73. {
  74.    volume   = 1.0;
  75.    isLooping= true;
  76.  
  77.    is3D     = true;
  78.    ReferenceDistance= 10.0;
  79.    MaxDistance= 50.0;
  80.    type     = $SimAudioType;
  81. };
  82.  
  83. datablock AudioDescription(AudioClosestLooping3d)
  84. {
  85.    volume   = 1.0;
  86.    isLooping= true;
  87.  
  88.    is3D     = true;
  89.    ReferenceDistance= 5.0;
  90.    MaxDistance= 30.0;
  91.    type     = $SimAudioType;
  92. };
  93.  
  94.  
  95. //-----------------------------------------------------------------------------
  96. // 2d sounds
  97. //-----------------------------------------------------------------------------
  98.  
  99. // Used for non-looping environmental sounds (like power on, power off)
  100. datablock AudioDescription(Audio2D)
  101. {
  102.    volume = 1.0;
  103.    isLooping = false;
  104.    is3D = false;
  105.    type = $SimAudioType;
  106. };
  107.  
  108. // Used for Looping Environmental Sounds
  109. datablock AudioDescription(AudioLooping2D)
  110. {
  111.    volume = 1.0;
  112.    isLooping = true;
  113.    is3D = false;
  114.    type = $SimAudioType;
  115. };
  116.  
  117.  
  118. //-----------------------------------------------------------------------------
  119. datablock AudioProfile(takeme)
  120. {
  121.    filename = "~/data/sound/takeme.wav";
  122.    description = "AudioDefaultLooping3d";
  123.     preload = false;
  124. };
  125.